package com.example.card.transactionimplementation;

import com.example.card.abstracttransactions.UserCheckTransaction;
import com.example.card.domain.user.User;

/**
 *
 */
public class AddVOilTransaction extends UserCheckTransaction {
    private final int amount;

    public AddVOilTransaction(int memberId, int amount) {
        super(memberId);
        this.amount = amount;
    }

    @Override
    public  void realExecute(User user) {
        user.addVOil(amount);
        // FIXME: 2023/12/13 可以入库
    }

}
